//
//  Load.swift
//  PROJECT
//
//  Created by PROJECT_OWNER on TODAYS_DATE.
//  Copyright (c) TODAYS_YEAR PROJECT_OWNER. All rights reserved.
//

import Foundation

class Load {
    public static let `default` = Load()
    private init(){}
    
    @objc func register(noti: Notification) {
        let navigator: ESVNavigator
        if let n = noti.object as? ESVNavigator {
            navigator = n
        }else {
            navigator = ESVNavigator.default
        }
        initialize(navigator)
    }
}

@_silgen_name("swiftFrameworkLoaded")
func loaded() {
    NotificationCenter.default.addObserver(Load.default, selector: #selector(Load.register(noti:)), name: registerNotification, object: nil)
}
